
class UserCollectionTransferDetailModel {
  String? collectionName;
  int? count;
  String? coverImageUrl;
  String? createTime;
  String? daoName;
  int? id;
  String? orderCode;
  String? receiveAddress;
  String? sendAddress;
  List<dynamic>? tokenIdList;

  UserCollectionTransferDetailModel({this.collectionName, this.count, this.coverImageUrl, this.createTime, this.daoName, this.id, this.orderCode, this.receiveAddress, this.sendAddress, this.tokenIdList});

  UserCollectionTransferDetailModel.fromJson(Map<String, dynamic> json) {
    collectionName = json["collectionName"];
    count = json["count"];
    coverImageUrl = json["coverImageUrl"];
    createTime = json["createTime"];
    daoName = json["daoName"];
    id = json["id"];
    orderCode = json["orderCode"];
    receiveAddress = json["receiveAddress"];
    sendAddress = json["sendAddress"];
    tokenIdList = json["tokenIdList"] ?? [];
  }

  static List<UserCollectionTransferDetailModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(UserCollectionTransferDetailModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["collectionName"] = collectionName;
    _data["count"] = count;
    _data["coverImageUrl"] = coverImageUrl;
    _data["createTime"] = createTime;
    _data["daoName"] = daoName;
    _data["id"] = id;
    _data["orderCode"] = orderCode;
    _data["receiveAddress"] = receiveAddress;
    _data["sendAddress"] = sendAddress;
    if(tokenIdList != null) {
      _data["tokenIdList"] = tokenIdList;
    }
    return _data;
  }
}